#include<stdio.h>
void fun5(char array[][3]);
main()
{
	char array[3][3]=
	{
		{'X','O','X'},
		{' ','X','O'},
		{'X',' ','O'}
	};
	fun5(array);
	return 0;
}
void fun5(char array[][3])
{
	int row , column;
	for (row=0;row<3;row++)
	{
		if(row!=0)
			printf("---+---+---\n");
		for(column=0;column<3;column++)
		{
			if(column!=0)
				printf("|");
			printf("%3c",array[row][column]);
		}
		printf("\n");
	}
}